package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsDto;
import com.heima.model.wemedia.dtos.WmNewsDownOrUpDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.entity.WmNews;


/**
 * 自媒体文章表(WmNews)表服务接口
 *
 * @author makejava
 * @since 2023-06-14 09:36:40
 */
public interface WmNewsService extends IService<WmNews> {

    ResponseResult submitNews(WmNewsDto wmNewsDto);

    /**
     * 分页查询文章列表
     * @param wmNewsPageReqDto
     * @return
     */
    ResponseResult pageList(WmNewsPageReqDto wmNewsPageReqDto);

    ResponseResult editNews(Long id);

    ResponseResult deleteNews(Long id);

    ResponseResult upOrDowmNews(WmNewsDownOrUpDto dto);

    ResponseResult apNewsList(NewsDto dto);

    ResponseResult findById(Integer id);

    ResponseResult audit(NewsDto dto);
}

